package com.saxon.service.Blog;

import com.saxon.Dao.Blog.BlogTypeDao;
import com.saxon.pojo.BlogType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlogTypeServiceImpl implements BlogTypeService{
    private BlogTypeDao blogTypeDao;

    @Autowired
    public void setBlogTypeDao (BlogTypeDao blogTypeDao) {
        this.blogTypeDao = blogTypeDao;
    }

    @Override
    public List<BlogType> QueryAllType () {
        return blogTypeDao.QueryAllType ();
    }
}
